/*
 * @Author: rogi
 * @Date: 2022-07-18 15:47:08
 * @LastEditTime: 2022-10-28 16:02:37
 * @LastEditors: rogi
 * @Description: 描述
 */
import request from "../utils/request";

export function ruleManageList(params) {
    return request(`/business/ruleManage/page`, {
        params
    })
}

export function baseRuleList(params) {
    return request(`/base/rule/list`, {
        params
    })
}

export function baseRuleKeyword(params) {
    return request(`/base/rule/keyword`, {
        params
    })
}

export function baseRuleOptions(params) {
    return request(`/base/rule/options`, {
        params
    })
}

export function ruleManageDetail(params) {
    return request(`/rule/manage/detail`, {
        params
    })
}

export function ruleQueryBasicsRule(params) {
    return request(`/business/ruleManage/queryRule`, {
        params
    })
}

export function ruleManagequeryById(params) {
    return request(`/business/ruleManage/queryById`, {
        params
    })
}

export function businessRuleFinancingQueryRule(params) {
    return request(`/business/ruleFinancing/queryRule`, {
        params
    })
}

export function businessBankPage(params) {
    return request(`/business/bank/page`, {
        params
    })
}

export function businessRuleFinancingQueryById(params) {
    return request(`/business/ruleFinancing/queryById`, {
        params
    })
}

export function businessRuleFinancingAddOrUpdate(body) {
    return request(`/business/ruleFinancing/addOrUpdate`, {
        method: 'post',
        body
    })
}

export function ruleManageCreate(body) {
    return request(`/rule/manage/create`, {
        method: 'post',
        body
    })
}

export function businessBankAddOrUpdate(body) {
    return request(`/business/bank/addOrUpdate`, {
        method: 'post',
        body
    })
}

export function ruleManageAddOrUpdate(body) {
    return request(`/business/ruleManage/addOrUpdate`, {
        method: 'post',
        body
    })
}

export function ruleManageUpdate(body) {
    return request(`/rule/manage/update`, {
        method: 'post',
        body
    })
}

export function ruleManageDelete(params) {
    return request(`/rule/manage/delete`, {
        method: 'delete',
        params
    })
}

export function businessRuleManageDelete(params) {
    return request(`/business/ruleManage/delete`, {
        method: 'delete',
        params
    })
}

export function businessBankDelete(params) {
    return request(`/business/bank/delete`, {
        method: 'delete',
        params
    })
}
